package com.stx.day0915;

/**
 * packageName com.stx.day0915
 *
 * @author YangYi
 * @className Hero
 * @date 2025/9/15
 * @description TODO
 */
public class HeroGame {
    public String heroName;

    public double blood;

    public double blue;

    public int level;

    /**
     * 攻击
     */
    public void attack(){
        if(blue > 10){
            System.out.println("一刀999999");
            blue -= 10;
        }else {
            System.out.println("魔法值不够，请加蓝");
        }
    }

    /**
     * 加蓝
     */
    public void addBlue(){
        blue += 50;
    }
}
